package action;

import com.opensymphony.xwork2.ActionSupport;
import service.TeacherServiceInter;

/**
 * Created by Administrator on 2017/4/25.
 */
public class QueryAllTeacherAction extends ActionSupport {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private TeacherServiceInter teacherServiceImpl;
    private String data;

    public TeacherServiceInter getTeacherServiceImpl() {
        return teacherServiceImpl;
    }

    public void setTeacherServiceImpl(TeacherServiceInter teacherServiceImpl) {
        this.teacherServiceImpl = teacherServiceImpl;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String execute(){
        this.setData(this.getTeacherServiceImpl().queryAllTeacher());
        return SUCCESS;
    }
}
